The Translation Kit Table of Contents | The Translation Kit Index |
This section describes the default media formats for each of the media groups defined by the Translation Kit.
Declared in: be/translation/TranslatorFormats.h
struct
TranslatorBitmap
{
int32
magic
;
BRect
bounds
;
uint32
rowBytes
;
color_space
colors
;
uint32
dataSize
;
}
TranslatorBitmap holds the header information for a translator bitmap. magic should always be set to B_TRANSLATOR_BITMAP. The uncompressed image data immediately follows the header in the stream. This image data should be precisely dataSize bytes long.
All data in the header is stored in big endian format. The data is stored in either big- or little- endian format, depending on the value of the colors field.
Streams in this format are stored as BPicture::Flatten().
This is a plain ASCII text file.
Declared in: be/translation/TranslatorFormats.h
|
TranslatorSound holds the header information for the default sound format. magic should always be set to B_TRANSLATOR_SOUND. The raw sound data stored in 16 bit linear format, left channel first, immediately follows the header. The data in both the header and the stream are stored in big endian format.
This is a standard type 1 MIDI file, as read by and written to the BMidiStore class.
As of this writing, a standard for this format has not been finalized, although it will be in a future release.
Obviously, there is no standard format for the no media type.
The Translation Kit Table of Contents | The Translation Kit Index |
Copyright © 2000 Be, Inc. All rights reserved..